<?php if ($modules) { ?>
<div class="span3">
	<aside class="sidebar">
    	 <?php foreach ($modules as $module) { ?>
         	<?php echo $module; ?>
         <?php } ?>
         <?php if(!empty($selling_product)){?>
         	<div class="widget TopSellingProducts">
            	<h3 class="widget-title widget-title"> <?php echo $title_selling_product?> </h3>
                <ul class="product-list-small">
                	<?php foreach($selling_product as $item){?>
                    	<li>
                        	<div class="image"> <a href="<?php echo $item['href']?>" title="<?php echo $item["name"]?>"> <img src="<?php echo $item["thumb"]?>" /></a> </div>
                            <div class="desc">
                            	<h6> <a href="<?php echo $item['href']?>" title="<?php echo $item["name"]?>"> <?php echo $item["name"]?> </a>  </h6>
                            	<div class="price"><?php echo $item["price"]?></div>
                            </div>
                        </li>
                    <?php }?>             
                </ul>
            </div>
         <?php }?>
         <?php if(!empty($gift_product)){?>
         	<div class="widget TopSellingProducts">
            	<h3 class="widget-title widget-title"> <?php echo $title_gift_product?> </h3>
             	<h5> <i class="icon-gift"></i> <?php echo $gift_product["name"]?> </h5>
                <div> <?php echo $gift_product["content_gift"]?> </div>
            </div>
         <?php }?>
    </aside>
</div>
<?php } ?>	